package com.library.librarybackend.domain;

import lombok.Getter;

/**
 * @author 平
 * @description 响应状态枚举类
 * @since 2025-09-19 00:02
 */
@Getter
public enum ResponseStatus {

    SUCCESS(200, "成功"),

    ERROR(500, "服务器错误"),

    UNAUTHORIZED(401, "未授权");

    private final Integer code;
    private final String message;

    ResponseStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }


}
